<form id="pagerForm" method="post" action="{:url('Statics/index')}">
    <input type="hidden" name="company_name" value="{$company_name|default=''}"/>
    <input type="hidden" name="start_time" value="{$starttime|default=''}"/>
    <input type="hidden" name="stop_time" value="{$stoptime|default=''}"/>
    <input type="hidden" name="pageNum" value="{$pageNum|default=''}"/>
</form>
<style>
    .alone_box,.alone_table_box{
        width: 45%;
    }
    .num_box p:last-child{
        font-size: 30px;
        margin-top: 40px;
    }
</style>
<div class="pageHeader">
    <form onsubmit="return navTabSearch(this);" action="{:url('Statics/index')}" method="post">
        <div class="searchBar">
            <table class="searchContent">
                <tr>
                    <td>开始时间：</td>
                    <td><input name="start_time" type="text" class="date" readonly="true" value="{$start_time|default=''}"></td>
                    <td>结束时间：</td>
                    <td><input name="stop_time" type="text" class="date" readonly="true" value="{$stop_time|default=''}"></td>
                    <td>
                        <label>检车站：</label>
                        <select class="combox" id="company_name" name="company_name">
                            <option value="" selected>请选择</option>
                            {foreach $check_station as $vo}
                            <option value="{$vo.company_name}" {eq name="$vo.company_name" value="$company_name"}selected{/eq}>{$vo.company_name}</option>
                            {/foreach}
                        </select>
                    </td>
                </tr>
            </table>
            <div class="subBar">
                <ul>
                    <li>
                        <div class="buttonActive">
                            <div class="buttonContent">
                                <button type="submit">搜索</button>
                            </div>
                        </div>
                    </li>
                </ul>
            </div>
        </div>
    </form>
</div>
<div class="alone_head_box">
    <div class="alone_box">
        <div class="page_box page_2">
            <img src="{$Think.config.static_url}/company/index/images/page_3.png">
        </div>
        <div class="num_box">
            <p style="font-weight: bold">订单统计</p>
        </div>
    </div>
    <div class="alone_box">
        <div class="page_box page_3">
            <img src="{$Think.config.static_url}/company/index/images/page_2.png">
        </div>
        <div class="num_box">
            <p style="font-weight: bold">结算统计</p>
        </div>
    </div>
</div>
<div class="alone_body_box">
    <div class="alone_table_box">
        <table class="alone_table">
            <thead>
            <tr>
                <th style="font-weight: bold">订单状态</th>
                <th style="font-weight: bold">订单数量（个）</th>
                <th style="font-weight: bold">订单金额（元）</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td style="font-size: 15px" class="first_td">未付款&nbsp;&nbsp;：</td>
                <td style="font-size: 15px" class="last_td">
                    <span style="font-size: 14px">{$wfk_order}</span>
                </td>
                <td style="font-size: 15px" class="last_td">
                    <span style="font-size: 14px">{eq name='$wfk_je' value=''}0{else/}{$wfk_je}{/eq}</span>
                </td>
            </tr>
            <tr>
                <td style="font-size: 15px" class="first_td">待检车&nbsp;&nbsp;：</td>
                <td style="font-size: 15px" class="last_td">
                    <span style="font-size: 14px">{$djc_order}</span>
                </td>
                <td style="font-size: 15px" class="last_td">
                    <span style="font-size: 14px">{eq name='$djc_je' value=''}0{else/}{$djc_je}{/eq}</span>
                </td>
            </tr>
            <tr>
                <td style="font-size: 15px" class="first_td">已完成&nbsp;&nbsp;：</td>
                <td style="font-size: 15px" class="last_td">
                    <span style="font-size: 14px">{$wc_order}</span>
                </td>
                <td style="font-size: 15px" class="last_td">
                    <span style="font-size: 14px">{eq name='$wc_je' value=''}0{else/}{$wc_je}{/eq}</span>
                </td>
            </tr>
            <tr>
                <td style="font-size: 15px" class="first_td">已退款&nbsp;&nbsp;：</td>
                <td style="font-size: 15px" class="last_td">
                    <span style="font-size: 14px">{$tk_order}</span>
                </td>
                <td style="font-size: 15px" class="last_td">
                    <span style="font-size: 14px">{eq name='$tk_je' value=''}0{else/}-{$tk_je}{/eq}</span>
                </td>
            </tr>
            <tr>
                <td style="font-size: 15px" class="first_td">全部&nbsp;&nbsp;：</td>
                <td style="font-size: 15px" class="last_td">
                    <span style="font-size: 14px">{$order_count}</span>
                </td>
                <td style="font-size: 15px" class="last_td">
                    <span style="font-size: 14px">{eq name='$order_je' value=''}0{else/}{$order_je}{/eq}</span>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
    <div class="alone_table_box">
        <table class="alone_table">
            <thead>
            <tr style="height: 80px;">
                <th style="font-weight: bold">结算状态</th>
                <th style="font-weight: bold">结算数量（个）</th>
                <th style="font-weight: bold">结算金额（元）</th>
            </tr>
            </thead>
            <tbody>
            <tr style="height: 80px;">
                <td style="font-size: 15px" class="first_td">已结算&nbsp;&nbsp;：</td>
                <td style="font-size: 15px" class="last_td">
                    <span style="font-size: 14px">{$yjs_order}</span>
                </td>
                <td style="font-size: 15px" class="last_td">
                    <span style="font-size: 14px">{eq name='$yjs_je' value=''}0{else/}{$yjs_je}{/eq}</span>
                </td>
            </tr>
            <tr style="height: 80px;">
                <td style="font-size: 15px" class="first_td">未结算&nbsp;&nbsp;：</td>
                <td style="font-size: 15px" class="last_td">
                    <span style="font-size: 14px">{$wjs_order}</span>
                </td>
                <td style="font-size: 15px" class="last_td">
                    <span style="font-size: 14px">{eq name='$wjs_je' value=''}0{else/}{$wjs_je}{/eq}</span>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>